﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LayerDTO;
using LayerDAO;

namespace LayerBUS
{
    public class CT_PhieuNhapBUS
    {
        public static List<CT_PhieuNhapDTO> LayDanhSachCTPhieuNhap(string connect, string a_Ma)
        {
            CT_PhieuNhapDAO ctpnDao = new CT_PhieuNhapDAO();
            return ctpnDao.LayDanhSachCTPhieuNhap(connect,a_Ma);
        }
        public static void XoaCTPhieuNhap(CT_PhieuNhapDTO ctpnDto, string connect)
        {
            CT_PhieuNhapDAO ctpnDao = new CT_PhieuNhapDAO();
            ctpnDao.XoaCTPN(ctpnDto, connect);
        }
        public static void SuaCTPhieuNhap(CT_PhieuNhapDTO ctpnDto, string connect)
        {
            CT_PhieuNhapDAO ctpnDao = new CT_PhieuNhapDAO();
            ctpnDao.SuaCTPN(ctpnDto, connect);
        }

    }
}
